package org.jmat.service;

import org.jmat.model.entities.Person;
/**
 * This class is a service.
 * @author Mathieu
 *
 */

public class PersonService {
	
	public Person[] getAllUsers(){
		Person[] persons = new Person[15];
		for (int i = 0; i < 15; i++){
			Person person = new Person(i,"Chatelain " + i, "Mathieu " + i);
			persons[i] = person;
		}
		return persons;
	}
	
	public Person getPersonById(int id){
		return new Person(1,"Chatelain","Mathieu");
	}
	
}
